<?
foreach ($questions['instructions']['content'] as $content) {
    if ($content['type'] == 'D') {
        ?>
        <h5> <strong><? echo $content['description'] ?></strong></h5>
    <?
    }
}
?>
<strong>Baby was hungry. Mother warmed a bottle of milk. Mother sat in a chair with baby.</strong><br>
<?
$number = 1;
foreach ($questions as $item) {
    if ($item['type'] == 'D') {
        $secureid = substr(md5(rand()), 0, 7);
if ($number==4){echo '<strong>Sam go a bucket of soapy water. Then he got a rag. He took them into the kitchen.</strong><br>';}
        ?>
		<? echo $number . '. ' . $item['question']; ?>
        <div class="col-md-offset-1">
            <? foreach ($item['choices'] as $choice) { ?>
                <input type = 'radio' name ='<? echo $secureid.$choice['answer_id'] ?>' value= '<? echo $choice['answer'] ?>'> <? echo $choice['answer'] ?></><br>

        <? } ?>
        </div><br>
        <?
        $number+=1;
        $num_of_questions += 1;
    }
}
?>